package com.multi.tool.springdemo;

import org.aspectj.lang.annotation.Aspect;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;


/**
 * @author zhengpeng.wang
 */
@Component
@Aspect
public class B {
    @Autowired
    private A a;
//    public B (A a){
//        this.a = a;
//    }

//    @Pointcut("execution(* com.roy.springdemo.*(..))")
    @Transactional
    //配置了切面之后，就要在单例池中注入动态代理对象
    public void test(){

    }
}
